import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN, en_US } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { LoginComponent } from './login/login.component';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzMenuModule } from 'ng-zorro-antd/menu';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { LoglistComponent } from './pages/log/loglist/loglist.component';
import { LogdetailComponent } from './pages/log/logdetail/logdetail.component';
import { AddlogComponent } from './pages/log/addlog/addlog.component';
import { UpdatelogComponent } from './pages/log/updatelog/updatelog.component';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
import { NzPaginationModule } from 'ng-zorro-antd/pagination';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
import { EditorComponent } from '@tinymce/tinymce-angular';
import { NzInputModule } from 'ng-zorro-antd/input';
import { UserComponent } from './pages/user/user/user.component';
import { PersonalComponent } from './pages/user/personal/personal.component';
import { AngularEditorModule } from '@kolkov/angular-editor';
import { SystemComponent } from './pages/system/system.component';
import { NzUploadModule } from 'ng-zorro-antd/upload';
import { NoticeComponent } from './pages/notice/notice.component';
import { FilerecordComponent } from './pages/filerecord/filerecord.component';
import { NzSelectModule } from 'ng-zorro-antd/select';
import { NzDividerModule } from 'ng-zorro-antd/divider';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import {NzTagModule} from "ng-zorro-antd/tag";
import {NzCardModule} from "ng-zorro-antd/card";
import en from '@angular/common/locales/en';

registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    LoglistComponent,
    LogdetailComponent,
    AddlogComponent,
    UpdatelogComponent,
    UserComponent,
    PersonalComponent,
    SystemComponent,
    NoticeComponent,
    FilerecordComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzButtonModule,
    NzLayoutModule,
    NzMenuModule,
    NzIconModule,
    NzTableModule,
    NzToolTipModule,
    NzPopconfirmModule,
    NzPaginationModule,
    NzModalModule,
    NzFormModule,
    NzDatePickerModule,
    EditorComponent,
    NzInputModule,
    AngularEditorModule,
    NzUploadModule,
    NzSelectModule,
    NzDividerModule,
    NzTagModule,
    NzCardModule,
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent],
})
export class AppModule {}
